package com.ftu.study.pattern.factory;

import com.ftu.study.pattern.factory.ny.NYStyleCheesePizza;

public class NYPizzaStore extends PizzaStore {

    @Override
    public Pizza createPizza(String type) {
        if(type.equals("cheese")) {
            return new NYStyleCheesePizza();
        }
//        else if(type.equals("veggie")) {
//            return new NYStyleVeggiePizza();
//        } else if(type.equals("clam")) {
//            return new NYStyleClamPizza();
//        } else if(type.equals("pepperoni")) {
//            return new NYStylePepperoniPizza();
//        }
        else {
            return null;
        }
    }

}
